package com.javaclimb.music.dao;

import com.javaclimb.music.domain.Admin;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 管理员Dao
 */
@Repository
public interface AdminMapper {
//    基于用户名查找数据库中的用户对象
    @Select("select * from Consumer where username = #{username}")
    Admin findUserByUsername(String username);

    /**
     *验证密码是否正确
     */
    public int verifyPassword(String username,String password);
}
